home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / DeskBus.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.7 KB  |  81 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        DeskBus.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__DESKBUS__') = 'UNDEFINED' THEN
  18. __DESKBUS__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25.  
  26.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  27.     include 'MixedMode.a'
  28.     ENDIF
  29. ADBOpBlock                 RECORD    0
  30. dataBuffPtr                 ds.l    1                                    ; address of data buffer 
  31. opServiceRtPtr             ds.l    1                                    ; service routine pointer 
  32. opDataAreaPtr             ds.l    1                                    ; optional data area address 
  33. sizeof                     EQU    12
  34.                         ENDR
  35.  
  36. ADBDataBlock             RECORD    0
  37. devType                     ds.b    1                                    ; device type 
  38. origADBAddr                 ds.b    1                                    ; original ADB Address 
  39. dbServiceRtPtr             ds.l    1                                    ; service routine pointer 
  40. dbDataAreaAddr             ds.l    1                                    ; data area address 
  41. sizeof                     EQU    10
  42.                         ENDR
  43.  
  44. ADBSetInfoBlock         RECORD    0
  45. siService                 ds.l    1                                    ; service routine pointer 
  46. siDataAreaAddr             ds.l    1                                    ; data area address 
  47. sizeof                     EQU    8
  48.                         ENDR
  49.  
  50.     IF GENERATING68K THEN
  51.         _ADBReInit:    OPWORD    $A07B
  52.     ELSE
  53.         IMPORT    ADBReInit
  54.     ENDIF
  55.  
  56.     IF GENERATING68K THEN
  57.         _CountADBs:    OPWORD    $A077
  58.     ELSE
  59.         IMPORT    CountADBs
  60.     ENDIF
  61.  
  62.     IF GENERATING68K THEN
  63.         _GetIndADB:    OPWORD    $A078
  64.     ELSE
  65.         IMPORT    GetIndADB
  66.     ENDIF
  67.  
  68.     IF GENERATING68K THEN
  69.         _GetADBInfo:    OPWORD    $A079
  70.     ELSE
  71.         IMPORT    GetADBInfo
  72.     ENDIF
  73.  
  74.     IF GENERATING68K THEN
  75.         _SetADBInfo:    OPWORD    $A07A
  76.     ELSE
  77.         IMPORT    SetADBInfo
  78.     ENDIF
  79.  
  80.     ENDIF ; __DESKBUS__
  81.